import React, { useCallback } from 'react';
import { Menu as AntDMenu } from 'antd';

const { SubMenu, Item } = AntDMenu;

/**
 * @description: 菜单树
 * @param [{}]
 * @return: React Node
 */
const Menu = function Menu() {
  const itemClick = useCallback(() => {}, []);
  return (
    <div>
      <h3 style={{ paddingLeft: 24, fontWeight: 'bold', color: '#000' }}>四川航空</h3>
      <AntDMenu
        theme="light"
        onClick={itemClick}
        style={{ width: 256 }}
        defaultOpenKeys={['sub1']}
        mode="inline"
      >
        <SubMenu
          key="sub1"
          title={
            <span>
              <span>Navigation One</span>
            </span>
          }
        >
          <Item key="1">Option 1</Item>
          <Item key="2">Option 2</Item>
          <Item key="3">Option 3</Item>
          <Item key="4">Option 4</Item>
        </SubMenu>
        <SubMenu
          key="sub2"
          title={
            <span>
              <span>Navigation Two</span>
            </span>
          }
        >
          <Item key="5">Option 5</Item>
          <Item key="6">Option 6</Item>
          <SubMenu key="sub3" title="Submenu">
            <Item key="7">Option 7</Item>
            <Item key="8">Option 8</Item>
          </SubMenu>
        </SubMenu>
        <SubMenu
          key="sub4"
          title={
            <span>
              <span>Navigation Three</span>
            </span>
          }
        >
          <Item key="9">Option 9</Item>
          <Item key="10">Option 10</Item>
          <Item key="11">Option 11</Item>
          <Item key="12">Option 12</Item>
        </SubMenu>
      </AntDMenu>
    </div>
  );
};

export default Menu;
